﻿using LJX.SmartPark.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJX.SmartPark.Domain.SysManage
{
    /// <summary>
    /// 用户管理表
    /// </summary>
    [Table("UserManage")]
    public class UserManage : KeyEntity 
    {
        /// <summary>
        /// 人员姓名
        /// </summary>
        [MaxLength(50)]
        public string PersonName { get; set; }

        /// <summary>
        /// 人员性别
        /// </summary>
        public bool Sex { get; set; }

        /// <summary>
        /// 证件类型
        /// </summary>
        public int IDType { get; set; }

        /// <summary>
        /// 证件号码
        /// </summary>
        [MaxLength(50)]
        public string IDNum { get; set; }

        /// <summary>
        /// 所属企业
        /// </summary>
        public int FirmId { get; set; }

        /// <summary>
        /// 所属部门ID
        /// </summary>
        public int DepartId { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        [MaxLength(50)]
        public string Phone { get; set; }

        /// <summary>
        /// 账户密码
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 人脸头像
        /// </summary>
        [MaxLength(300)]
        public string? FaceImage { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int SortId { get; set; }

        /// <summary>
        /// 是否在线
        /// </summary>
        public bool? State { get; set; }

        /// <summary>
        /// 所属角色
        /// </summary>
        public int RoleId { get; set; }

        /// <summary>
        /// 登录Id
        /// </summary>
        public int LoginId { get; set; }
    }
}
